package what.the.fun.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import what.the.fun.dao.AnswerResultDAO;
import what.the.fun.domain.AnswerResult;

public class AnswerResultServiceImpl implements AnswerResultService{

	@Autowired
	AnswerResultDAO answerResultDAO;
	
	@Override
	public List<AnswerResult> getDataList() {
		return answerResultDAO.getDataList();
	}

	@Override
	public void insertData(AnswerResult data) {
		answerResultDAO.insertData(data);
	}

	@Override
	public void updateData(AnswerResult data) {
		answerResultDAO.updateData(data);
	}

	@Override
	public void deleteData(String id) {
		answerResultDAO.deleteData(id);
	}

	@Override
	public AnswerResult getData(String id) {
		return answerResultDAO.getData(id);
	}

}
